<?php if ($reviews) { ?>
<?php foreach ($reviews as $review) { ?>
<div class="single-review clearfix">
<div class="review-header">
	 <ul class="rating">
                                   	<?php for($i=1;$i<6; $i++) { ?>
                                    <?php if ($i <= $review['rating']) {?>
                                   	 	<li><i class="star-on"></i></li>
                                    <?php } else { ?>
                                    	<li><i class="star-off"></i></li>
                                    <?php } ?>
                                    <?php } ?>
                                    </ul>
	<h4><?php echo $review['author']; ?></h4>
	<small><?php echo $text_on; ?> <?php echo $review['date_added']; ?></small>
</div><!--end review-header-->

<div class="review-body" style="overflow:hidden;">
	<p><?php echo $review['text']; ?></p>
</div><!--end review-body-->
</div><!--end single-review-->
<?php } ?>
<div class="pagination"><?php echo $pagination; ?></div>
<?php } else { ?>
<div class="content"><?php echo $text_no_reviews; ?></div>
<?php } ?>
